﻿using System;
using System.Windows.Data;
using WP8_PPS.Models;

namespace WP8_PPS.Helpers
{
    /// <summary>
    /// Converter to convert from a enumeration collection of PoleCondition to a list of strings
    /// </summary>
    public class ListPoleConditionConverter : IValueConverter
    {
        public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            return EnumExtensions.GetNames<PoleCondition>();
        }

        public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
        {
            // No need to implement because the user can never change to entire list on select from the list
            throw new NotImplementedException();
        }
    }
}
